import {ref } from "vue";
import useEvent from "@/plugins/event.js"

const useMouse = () => {
	const a = ref(0);
	const b = ref(0);
	useEvent(window, "mousemove", (e) => {
		a.value = e.pageX;
		b.value = e.pageY;
	});
	return {a, b};
}

export default useMouse;